package com.jeeplus.test.jlnu.student.domain.result;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Node {
    private String label;
    private List<Node> children;

    public Node(String label) {
        this.label = label;
        this.children = new ArrayList<>();
    }

    public void addChild(Node child) {
        children.add(child);
    }

}
